//
//  UIImage+Helper.h
//  HaveFace
//
//  Created by 赵金鹏 on 15/11/18.
//  Copyright © 2015年 赵金鹏. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Helper)

#pragma mark 默认从图片中心点开始拉伸图片
+ (UIImage *)resizedImage:(NSString *)imgName;

#pragma mark 可以自由拉伸的图片
+ (UIImage *)resizedImage:(NSString *)imgName xPos:(CGFloat)xPos yPos:(CGFloat)yPos;

+ (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size;

+ (UIImage *) imageCompressForSize:(UIImage *)sourceImage targetSize:(CGSize)size;


//图片高斯模糊
+(UIImage *)coreBlurImage:(UIImage *)image
           withBlurNumber:(CGFloat)blur;
+(UIImage *)boxblurImage:(UIImage *)image withBlurNumber:(CGFloat)blur;
@end
